package com.ny.kind;

import java.util.Scanner;

public class TestPay {
    public static void main(String[] args) {
        double money=15;
        System.out.println("你需要付款的金额为："+money);
        System.out.println("请选择支付的方式：1.银行卡支付 2.微信支付 3.支付宝支付");
        Scanner scanner =new Scanner(System.in);
        switch(scanner.nextInt()){
            case  1:
                Pay bankPay =new BankPay();
                bankPay.pay(money);
                break;
            case 2:
                Pay WeChatPay =new WeChatPay();
                WeChatPay.pay(money);
                System.out.println("选择微信支付");
                break;
            case 3:
                System.out.println("选择支付宝");
                break;

        }
    }
}
